package org.fujay.langchain4jserver.domain.knowledge.event;

import lombok.Getter;
import org.fujay.langchain4jserver.domain.knowledge.vo.FileId;
import org.springframework.context.ApplicationEvent;

/**
 * 知识库新增文件事件，触发文件索引
 */
@Getter
public class FileAddedEvent extends ApplicationEvent {

    private final FileId fileId;
    private final String fileName;
    private final String filePath;

    public FileAddedEvent(Object source, FileId fileId, String fileName, String filePath) {
        super(source);
        this.fileId = fileId;
        this.fileName = fileName;
        this.filePath = filePath;
    }
}
